// 入口文件
//引入vue
 import vue from 'vue'
//引入app
 import app from './App.vue'

//引入mint-ui
import {Header, Swipe, SwipeItem} from 'mint-ui'
vue.component(Header.name,Header)
vue.component(Swipe.name,Swipe)
vue.component(SwipeItem.name,SwipeItem)

//路由第一步，引入路由
import VueRouter from 'vue-router'
//路由第二部，vue.use 路由   安装路由
vue.use(VueRouter)

//2.1引入vue-resource
import VueResource from 'vue-resource'
vue.use(VueResource)
//2.2安装vue-resource vue.use()

//引入mui
import './lib/mui/css/mui.css'
//引入icons-extrathis.$scopedSlots
import './lib/mui/css/icons-extra.css'

//路由第三步，引入router.js
import router from './router.js'


var vm = new vue({
  el:"#app",
  render:c => c(app),
  router //路由第四步，把路由挂载到vm实例上
})